'''
$LastChangedBy: csgillespie $
$LastChangedDate: 2007-06-06 11:08:06 +0000 (Wed, 06 Jun 2007) $
Colin Gillespie <c.gillespie@ncl.ac.uk>
'''


from pysbml import pysbml

sbml = pysbml.SBMLModel(sbml_file = 'LV2.xml')

fp = open("model.jpg","w")
fp.write(sbml.visualiseModel().static('jpg'))
fp.close()

fp = open("reaction.gif","w")
fp.write(sbml.visualiseReaction(1).static('gif'))
fp.close()

fp = open("species.png","w")
fp.write(sbml.visualiseSpecies(2).static('png'))
fp.close()

fp = open("file.html","w")
fp.write(sbml.sbml2html())
fp.close()
